import request from '@/router/request'

export function pwdlogin(data) {
  return request({
    url: `/chartMap/oauth/token`,
    method: 'post',
    headers: {
      Authorization: 'Basic YXBwOmFwcA=='
    },
    params: { ...data, grant_type: "password", scope: "server" }
  })
}

// 获取用户详细信息
export function getInfo() {
  return request({
    url: '/chartMap/getInfo',
    method: 'get'
  })
}